package five1;

public class Point {
	void print() {
		System.out.println("This is the superclass!");
	}
	
	public static void main(String args[]) {
		Point superp = new Point();
		superp.print();
		Point3d supb = new Point3d();
		supb.print();
	}
}
	class Point3d extends Point{
		void print() {
			System.out.println("This is the subclass!");
		}
	}
